//获取table并设置奇偶行tr斑马线样式
function stripeTables(){
    let tables = document.getElementsByTagName("table")
    let odd,rows
    for(let i=0;i<tables.length;i++){
        odd = false
        rows = tables[i].getElementsByTagName("tr")
        for(let k=0;k<rows.length;k++){
            if(odd == true){
                rows[k].style.backgroundColor = 'red'
                odd = false
            }else{
                odd = true
            }
        }
    }
}
addLoadEvent(stripeTables)